cmake_minimum_required(VERSION 3.4)
project(tgc LANGUAGES C)

add_library(tgc ${TGC_SRC_DIR}/tgc.c)
set_property(TARGET tgc PROPERTY WINDOWS_EXPORT_ALL_SYMBOLS TRUE)

include(GNUInstallDirs)
install(TARGETS tgc
        RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
        LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
        ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})

install(FILES ${TGC_SRC_DIR}/tgc.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
